Fix error exit path in __gnttab_map_grant_ref() to
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Mon, 13 Feb 2006 09:23:26 +0000 (10:23 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Mon, 13 Feb 2006 09:23:26 +0000 (10:23 +0100)
put_domain() and hence avoid zombie domains.

Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
xen/common/grant_table.c

index c419cbcde3c55599e5bf1d960047223d3f839915..6a9e99ba43fabf27a935ea2884467c017b2ff2b2 100644 (file)
@@ -316,6 +316,7 @@ __gnttab_map_grant_ref(
     spin_unlock(&rd->grant_table->lock);
     (void)__put_user(rc, &uop->status);
     put_maptrack_handle(ld->grant_table, handle);
+    put_domain(rd);
     return rc;
 }